package com.ssy.lingxi.purchase.repository.purchaseplan;

import com.ssy.lingxi.purchase.entity.purchaseplan.PurchasePlanInnerRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 采购计划内部记录DB操作类
 * */
@Repository
public interface PurchasePlanRecordRepository extends JpaRepository<PurchasePlanInnerRecord, Long>, JpaSpecificationExecutor<PurchasePlanInnerRecord> {

    List<PurchasePlanInnerRecord> findByPurchasePlanId(Long id);

    void deleteByPurchasePlanId(Long id);
}
